import Vue from 'vue';
import App from './App.vue';
import router from './router';
import { registerMicroApps, start } from 'qiankun';

Vue.config.productionTip = false;

registerMicroApps([
  {
    name: 'app1',
    entry: '//localhost:8082',
    container: '#microApp',
    activeRule: '/app1'
  },
  {
    name: 'app2',
    entry: '//localhost:8083',
    container: '#microApp',
    activeRule: '/app2'
  }
]);
// // Config with more expressive API

new Vue({
  router,
  mounted() {
    debugger;
    start();
  },
  render: h => h(App)
}).$mount('#app');
